import { _decorator, Component, Node } from 'cc';
import { GlobalData } from './GlobalData';
const { ccclass, property } = _decorator;

@ccclass('CameraMgr')
export class CameraMgr extends Component {
    start() {

    }

    update(deltaTime: number) {
      if(GlobalData.instance.nodePlayer){
        this.node.positionX = GlobalData.instance.nodePlayer.positionX
      }
    }
}

